#!/bin/bash


target_cosine_dir_in_external=$1

echo " target cosine lib root dir: $target_cosine_dir_in_external"

inc_dir=${target_cosine_dir_in_external}/include/map_module
if [ ! -d ${inc_dir} ]; then
  mkdir -p ${inc_dir}
fi
lib_dir=${target_cosine_dir_in_external}/lib
if [ ! -d ${lib_dir} ]; then
  mkdir -p ${lib_dir}
fi

rm -rf $inc_dir/*
cp -rf include/common include/map_engine $inc_dir
ls $inc_dir

rm -rf $lib_dir/*
cp build_aarch64_Release/map-engine/libmap_module.so build_aarch64_Release/map-engine/interface/proto/libmap_proto.so lib/libnds_sqlite3_crypto.so lib/libnds_sqlite3.so $lib_dir
ls $lib_dir  